]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
portalHelper: Fix runtime warning
authorBastien Nocera <hadess@hadess.net>
Mon, 13 Feb 2017 10:10:19 +0000 (11:10 +0100)
committerBastien Nocera <hadess@hadess.net>
Mon, 13 Feb 2017 10:54:35 +0000 (11:54 +0100)
When there is no URI, then the title should be empty, not null:
Gjs-WARNING **: JS ERROR: Error: Argument 'str' (type utf8) may not be null

https://bugzilla.gnome.org/show_bug.cgi?id=778552

js/portalHelper/main.js

index ccbe77b8888455389c139ed1a8d29868cf27300e..6070af2cc6332c650df4c97fbd8aca46a560a36e 100644 (file)
@@ -176,7 +176,7 @@ const PortalWindow = new Lang.Class({
         if (uri)
             this._headerBar.setSubtitle(GLib.uri_unescape_string(uri, null));
         else
-            this._headerBar.setSubtitle(null);
+            this._headerBar.setSubtitle('');
     },
 
     refresh: function() {